﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace Tools
{
    public class ObservableCollectionConverter
    {
        public static ObservableCollection<T> GetObservableCollection<T>(IEnumerable list)
        {
            ObservableCollection<T> m = new ObservableCollection<T>();
            foreach (T o in list)
                m.Add(o);
            return m;
        }
    }
}
